package com.mckillion.Exercise12;

public abstract class Vehicle {
	LandBehaviour drivingBehaviour;
	WaterBehaviour waterBehaviour;
	
	public abstract void display();
	
	public void doDrive(){
		drivingBehaviour.drive();
	}
	
	public void doWaterMove(){
		waterBehaviour.move();
	}
	
	public void setDrivingBehaviour(LandBehaviour db){
		drivingBehaviour = db;
	}
	
	public void setDrivingBehaviour(WaterBehaviour wb){
		waterBehaviour = wb;
	}
}
